﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using SWEN3WebService.Models;

namespace SWEN3WebService.Controllers
{
    public class RoomsController : ApiController
    {
        readonly IRoomsRepository RoomsRepository = new RoomsRepository();

        public IEnumerable<Rooms> GetAllRooms()
        {
            return RoomsRepository.GetAll();
        }

        public Boolean PutRooms(Rooms item)
        {
            return RoomsRepository.UpdateRooms(item);
        }
    }
}
